package day08demo;

public class Car {
    private String brand;
    private String color;
    private String price;

    public Car() {
    }

    public Car(String brand, String color, String price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public void start() {
        System.out.println(price + "块钱" + color + "的" + brand + "在启动");
    }

    public void run() {
        System.out.println(price + "块钱" + color + "的" + brand + "在跑");
    }

    public void stop() {
        System.out.println(price + "块钱" + color + "的" + brand + "停止了");
    }
}
